<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<link rel="stylesheet" type="text/css" href="style/tip.css" />
<script language="javascript" type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
<title>咨询反馈</title>
<style>
.handle{width:80%;background:#CCE8CF;margin:0px 50px;border-bottom: 1px dashed #BCBCBC;}
.handle ul{}
</style>
</head>
<body>
	<div id="wrap" style="min-width:800px;width:100%">
	<?php 
		if(empty($outid)){
	?>
    	<div id="public_head"></div>
    <?php }?>
        <div class="m_revise zx_list" style="width:100%">
        	<ul class="zl_List">
            	<li><span></span><b>反馈人：</b><?php echo $feedinfo['NAME']?></li>
                <li><b>反馈时间：</b><?php echo $feedinfo['FEED_TIME']?></li>
                <li><b>反馈类型：</b><?php echo $types[$feedinfo['TYPE']]?></li>
                <li><b>科室：</b><?php echo $alldep[$feedinfo['DEP_NO']]?></li>
                <div class="clear"></div>
            </ul>
            <ul class="gl_List">
            	<li><b>反馈内容：</b></li>
                <li><span style="line-height:20px">&nbsp;&nbsp;<?php echo $feedinfo['CONTENT']?></span></li>
                <div class="clear"></div>
            </ul>
            <ul class="zl_List">
            	<li><b>联系电话：</b><?php echo $feedinfo['PHONE']?></li>
                <div class="clear"></div>
            </ul>
       <?php 
       		if(!empty($pid)){
       			foreach ($allhandle as $v){
       	?>
       		<div class="handle">
	            <ul class="zl_List">
	            	<li><span style="color:#9a9a9a">处理人：</span><?php echo $v['NAME']?$v['NAME']:$v['UPD_USER']?></li>
	            	<li><span style="color:#9a9a9a">处理时间：</span><?php echo $v['HANDLE_TIME']?></li>
	                <div class="clear"></div>
	            </ul>
	            <ul class="gl_List" style="padding: 5px 10px 20px;">
	            	<li><span style="color:#9a9a9a">处理结果：</span></li><br>
	                <li><span style="padding-left: 25px;"><?php echo $v['CONTENT']?></span></li>
	                <div class="clear"></div>
	            </ul>
            </div>
         <?php }?>
         <form action='' method='post'>
         	<ul class="gl_List">
            	<li><b>您的处理内容：</b></li>
                <li><textarea name="handle" cols="75" rows="10"></textarea></li>
                <div class="clear"></div>
            </ul>
            <ul>
            	<li>
            		<input class="btn_save" name="sub_handle" type="submit" value='' />&nbsp;
            		<input class="btn_gray" type='button' value='返回' onclick="location.href=T.getCookie('goback_feedback');T.delCookie('goback_feedback');"/>
            	</li>
                <div class="clear"></div>
            </ul>
         </form>
        <?php 
       }elseif(empty($outid)){
       ?>
       	<ul>
       			<li>
                	<input type='button' passid='4'  class='btn_gray pass' value='审核通过'/>
			        <input type='button' passid='5'  class='btn_gray pass' value='不通过'/>
			        <input type='button' class='btn_gray' onclick="location.href=T.getCookie('goback_feedback');T.delCookie('goback_feedback');" value='返回'/>
                </li>
                </ul>
       <?php }?>
        </div>
    </div>
</body>
</html>
<script src="/js/xheditor/jquery/jquery-1.4.4.min.js"></script>
<script src="/js/boot.js"></script>
<script src="/js/tip.js"></script>
<script src="/js/add_public_head.js" type="text/javascript"></script>
<script type="text/javascript">
$('.pass').click(function (){
	var t = this
	if(T.confirm('确认操作吗？')){
		$.ajax({
			url:'/index.php',
			data:{'c':'feed','a':'passFeedback','p':$(t).attr('passid'),'id':<?php echo $id;?>},
			type:'get',
			dataType:'json',
			success:function(de){
				T.addTop(lang[de.msg]);
				history.back()
			}
		})
	}
	return false;
})
</script>